<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/tiles-jsp.tld " prefix="tiles"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":"
			+ request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
		<base href="<%=basePath%>" />
		<title>天元企业管理系统</title>
		<link rel="stylesheet" type="text/css" media="screen"
			href="theme/ui.jqgrid.css" />
		<link rel="stylesheet" type="text/css" media="screen"
			href="theme/jquery-ui.css" />
		<link rel="stylesheet" type="text/css" media="screen"
			href="theme/common.css" />
		<link media="screen" type="text/css" rel="stylesheet"
			href="theme/ui.multiselect.css" />
		<script src="js/jquery-1.4.2.min.js" type="text/javascript"></script>
		<script src="js/i18n/grid.locale-cn.js" type="text/javascript"></script>
		<script src="js/i18n/ui.datepicker-zh-CN.js" type="text/javascript"></script>
		<script src="js/plugin/jquery-ui-1.8.1.custom.min.js"
			type="text/javascript"></script>
			
			
		<script src="js/plugin/jquery.progressbar.js" type="text/javascript"></script>

		<script src="js/plugin/grid/grid.base.js" type="text/javascript"></script>
		<script src="js/plugin/grid/grid.celledit.js" type="text/javascript"></script>
		<script src="js/plugin/grid/grid.common.js" type="text/javascript"></script>
		<script src="js/plugin/grid/grid.custom.js" type="text/javascript"></script>
		<script src="js/plugin/grid/grid.formedit.js" type="text/javascript"></script>
		<script src="js/plugin/grid/grid.import.js" type="text/javascript"></script>
		<script src="js/plugin/grid/grid.inlinedit.js" type="text/javascript"></script>
		<script src="js/plugin/grid/grid.jqueryui.js" type="text/javascript"></script>
		<script src="js/plugin/grid/grid.postext.js" type="text/javascript"></script>
		<script src="js/plugin/grid/grid.setcolumns.js" type="text/javascript"></script>
		<script src="js/plugin/grid/grid.subgrid.js" type="text/javascript"></script>
		<script src="js/plugin/grid/grid.tbltogrid.js" type="text/javascript"></script>
		<script src="js/plugin/grid/grid.treegrid.js" type="text/javascript"></script>
		<script src="js/plugin/grid/grid.ty.js" type="text/javascript"></script>
		<script src="js/plugin/grid/jqDnR.js" type="text/javascript"></script>
		<script src="js/plugin/grid/jqModal.js" type="text/javascript"></script>

		<script src="js/plugin/grid/jquery.fmatter.js" type="text/javascript"></script>
		<script src="js/plugin/grid/jquery.searchFilter.js"
			type="text/javascript"></script>
		<script src="js/plugin/grid/JsonXml.js" type="text/javascript"></script>
		<script src="js/plugin/grid/ui.multiselect.js" type="text/javascript"></script>

		<script src="js/plugin/jquery.validate.js" type="text/javascript"></script>
		<script src="js/i18n/messages_cn.js" type="text/javascript"></script>

		<script src="js/common.js" type="text/javascript"></script>
		<script src="js/idCardValidation.js" type="text/javascript"></script>


		<style type="text/css">
<!--
.button_area {
	position: absolute;
	top: 20px;
	right: 50px;
}

.label {
	font-style: normal;
}
-->
</style>
	</head>
	<body>
		<TABLE cellSpacing=0 cellPadding=0 width="98%" border=0>
			<TBODY>
				<TR>
					<TD width=15 background="theme/images/grid/new_019.jpg">
						
					</TD>
					<TD width="98%" background=theme/images/grid/new_020.jpg
						height=20></TD>
					<TD width=15 background="theme/images/grid/new_021.jpg">
						
					</TD>
				</TR>
			</TBODY>
		</TABLE>
		<TABLE cellSpacing=0 cellPadding=0 width="98%" border=0>
			<TBODY>
				<TR>
					<TD width=15 background=theme/images/grid/new_022.jpg>
						<IMG src="theme/images/grid/new_022.jpg" border=0>
					</TD>
					<TD vAlign=top width="100%" bgColor=#ffffff>
						<TABLE cellSpacing=0 cellPadding=5 width="100%" border=0>
							<TR>
								<TD class=manageHead>
									当前位置：<tiles:insertAttribute name="title"></tiles:insertAttribute>
								</TD>
							</TR>
							<TR>
								<TD height=2></TD>
							</TR>
						</TABLE>
						<table>
							<tr>
								<td>
									<div>
									<s:actionmessage />
									<s:actionerror />
								</div>
								<div id="errDiv" class="error"></div>
								<tiles:insertAttribute name="content"></tiles:insertAttribute>
								<table id="list" width="100%" border="0" cellspacing="0"
									cellpadding="0"></table>
								<div id="pjmap"></div>
								</td>
							</tr>
						</table>
					</TD>
					<TD width=15 background=theme/images/grid/new_023.jpg>
						<IMG src="theme/images/grid/new_023.jpg" border=0>
					</TD>
				</TR>
			</TBODY>
		</TABLE>
		<TABLE cellSpacing=0 cellPadding=0 width="98%" border=0>
			<TBODY>
				<TR>
					<TD width=15 background="theme/images/grid/new_024.jpg">
						
					</TD>
					<TD align=middle width="98%"
						background=theme/images/grid/new_025.jpg height=15></TD>
					<TD width=15 background="theme/images/grid/new_026.jpg">
						
					</TD>
				</TR>
			</TBODY>
		</TABLE>

	</body>
</html>
<script type="text/javascript">
		$(document).ready(function(){
			$("a.button").button();
			$("button, input:submit").button();
			//$("button, input:submit").css( {'color':'#1F4A65'})
			$('.checkboxlist tr:even').css( {'background-color':'#ffffff'})
			
			$("a.submit").attr("href","javascript:void(0)");
			$("a.submit").bind('click',function(){
				$('form:first').trigger('submit');
				return false;
			})		
			jQuery("#list").jqGrid(GridOption);	
			try{
				if(gridData!=undefined){
					for(var i=0;i<=gridData.length;i++)
					$("#list").jqGrid('addRowData',i+1,gridData[i]); 
				}
			}catch(e){
			}
			<s:if test="!#session['hasEdit']">
			$("a.edit").each(function(index,obj){
				$(obj).hide();
			})
			</s:if>
		}); 
		
</script>
